package com.edu.dsai.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginInput {
    @NotNull(message = "用户名不能为空")
    @NotEmpty(message = "用户名不能为空串")
    private String username;
    @NotNull(message = "密码不能为空")
    @NotEmpty(message = "密码不能为空串")
    private String password;
}
